home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
oath.lha
/
oath
/
test
/
bisqr.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-29
|
728b
|
25 lines
#include "oath/bigInteger.h"
#include <iostream.h>
main(int argc, char **argv)
{if(argc != 2)
{cout << argv[0] << " reads a bigInteger and produces squares.\n";
cout << "Usage: " << argv[0] << " <integer>\n";
exit(1);
}
bigIntegerA X = bigIntegerA::make(argv[1]);
cout << " X = " << X << endl;
cout << "X.sqr () = " << X.sqr () << endl;
cout << "X.sqr () = " << X.sqr () << endl;
cout << "X.sqr () = " << X.sqr () << endl;
cout << "X.sqrt() = " << X.sqrt() << endl;
cout << "X.sqrt() = " << X.sqrt() << endl;
cout << "X.sqrt() = " << X.sqrt() << endl;
cout << "X.sqrt() = " << X.sqrt() << endl;
cout << "X.sqrt() = " << X.sqrt() << endl;
}